﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lazy01
{
    class TaskNPC : NPC
    {
        private string takeinfo;

        public TaskNPC(string name, NPCtype type, string takeinfo) : base(name, type)
        {
            this.takeinfo = takeinfo;
        }

        public override void talk()
        {
            Console.WriteLine("小伙子我看你骨骼精奇我这里有一信封需要你送出。");
            Console.WriteLine("{2}NPC:{0},任务:{1}", base.Name, this.takeinfo,NPCtype.Task);
        }
       
    }
    class TaskNPC1 : NPC
    {
        private string takeinfo;

        public TaskNPC1(string name, NPCtype type, string takeinfo) : base(name, type)
        {
            this.takeinfo = takeinfo;
        }

        public override void talk()
        {
            Console.WriteLine("小伙子我女儿需要风灵狼的狼牙治病。");
            Console.WriteLine("{2}NPC:{0},任务:{1}", base.Name, this.takeinfo, NPCtype.Task);
        }
    }
    class TaskNPC2 : NPC
    {
        private string takeinfo;

        public TaskNPC2(string name, NPCtype type, string takeinfo) : base(name, type)
        {
            this.takeinfo = takeinfo;
        }

        public override void talk()
        {
            Console.WriteLine("小伙子我儿子需要郊外的蓝银草治病。");
            Console.WriteLine("{2}NPC:{0},任务:{1}", base.Name, this.takeinfo,NPCtype.Task);
        }
    }
}
